package com.lxmes.hr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.hr.mapper.NcEleAttendMapper;
import com.lxmes.hr.domain.NcEleAttend;
import com.lxmes.hr.service.INcEleAttendService;

/**
 * 电子考勤Service业务层处理
 * 
 * @author zhangzhiyu
 * @date 2022-11-25
 */
@Service
public class NcEleAttendServiceImpl implements INcEleAttendService 
{
    @Autowired
    private NcEleAttendMapper ncEleAttendMapper;

    /**
     * 查询电子考勤
     * 
     * @param id 电子考勤主键
     * @return 电子考勤
     */
    @Override
    public NcEleAttend selectNcEleAttendById(Long id)
    {
        return ncEleAttendMapper.selectNcEleAttendById(id);
    }

    /**
     * 查询电子考勤列表
     * 
     * @param ncEleAttend 电子考勤
     * @return 电子考勤
     */
    @Override
    public List<NcEleAttend> selectNcEleAttendList(NcEleAttend ncEleAttend)
    {
        return ncEleAttendMapper.selectNcEleAttendList(ncEleAttend);
    }

    /**
     * 新增电子考勤
     * 
     * @param ncEleAttend 电子考勤
     * @return 结果
     */
    @Override
    public int insertNcEleAttend(NcEleAttend ncEleAttend)
    {
        return ncEleAttendMapper.insertNcEleAttend(ncEleAttend);
    }

    /**
     * 修改电子考勤
     * 
     * @param ncEleAttend 电子考勤
     * @return 结果
     */
    @Override
    public int updateNcEleAttend(NcEleAttend ncEleAttend)
    {
        return ncEleAttendMapper.updateNcEleAttend(ncEleAttend);
    }

    /**
     * 批量删除电子考勤
     * 
     * @param ids 需要删除的电子考勤主键
     * @return 结果
     */
    @Override
    public int deleteNcEleAttendByIds(Long[] ids)
    {
        return ncEleAttendMapper.deleteNcEleAttendByIds(ids);
    }

    /**
     * 删除电子考勤信息
     * 
     * @param id 电子考勤主键
     * @return 结果
     */
    @Override
    public int deleteNcEleAttendById(Long id)
    {
        return ncEleAttendMapper.deleteNcEleAttendById(id);
    }
}
